package com.frame.work.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 消息表
 *
 * @author wjming
 */
@Data
@TableName(value = "tbl_message")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class TblMessage extends BaseClassEntity implements Serializable {

    /**
     * 接收人
     */
    @TableField(value = "sender")
    private String sender;


    /**
     * 发送类型 1：短信 2：激光推送
     */
    @TableField(value = "send_type")
    private String sendType;

    /**
     * 消息类型 0：全站消息 1：登陆验证码 2：账号类 3：普通类 4：报警类
     */
    @TableField(value = "message_type")
    private String messageType;

    /**
     * 标题
     */
    @TableField(value = "title")
    private String title;

    /**
     * 内容
     */
    @TableField(value = "content")
    private String content;

    /**
     * 用户ID
     */
    @TableField(value = "user_id")
    private String userId;

    /**
     * 附加值
     */
    @TableField(value = "extras")
    private String extras;


    @TableField(value = "account", select = false)
    private String account;

    @TableField(value = "nick_name", select = false)
    private String nickName;

    @TableField(value = "org_code", select = false)
    private String orgCode;

    /**
     * 消息是否已读(0已读 1未读)
     */
    @TableField(value = "has_read")
    private String hasRead;

}
